import request from '@/utils/request'

// 查询我的传承列表
export function listInherit(query) {
  return request({
    url: '/mine/inherit/list',
    method: 'get',
    params: query
  })
}

// 查询我的传承详细
export function getInherit(inheritId) {
  return request({
    url: '/mine/inherit/' + inheritId,
    method: 'get'
  })
}

// 新增我的传承
export function addInherit(data) {
  return request({
    url: '/mine/inherit',
    method: 'post',
    data: data

  })
}

// 修改我的传承
export function updateInherit(data) {
  return request({
    url: '/mine/inherit',
    method: 'put',
    data: data
  })
}

// 删除我的传承
export function delInherit(inheritId) {
  return request({
    url: '/mine/inherit/' + inheritId,
    method: 'delete'
  })
}
